from django.conf.urls.defaults import *
from django.views.generic import list_detail

from models import *
from views import  *

urlpatterns = patterns('',
    # Example:
    # (r'^django/', include('django.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    
    (r'^$', list_detail.object_list, {"queryset": Product.objects.all()}),
    (r'^(?P<product>\d+)/$',  branch_list),
    (r'^(?P<product>\d+)/(?P<branch>\d+)/$', component_list),
)
